FROM dreamkaylee/dragonwell8-alpine:latest

LABEL maintainer="dreamkayli@outlook.com"

ARG JAR_FILE=./build/libs/sanley-piss-app-1.0.0.jar

ENV LOGGER_PATH="/var/log/"

WORKDIR /opt

EXPOSE 8090

ADD ${JAR_FILE} ./app.jar

ENTRYPOINT [ \
    "java", \
    "-XX:MetaspaceSize=256m", \
    "-XX:MaxMetaspaceSize=256m", \
    "-Xms2048m", \
    "-Xmx2048m", \
    "-Xmn512m", \
    "-Xss256k", \
    "-XX:SurvivorRatio=8", \
    "-XX:+UseConcMarkSweepGC", \
    "-Duser.timezone=GMT+08", \
    "-Djava.security.egd=file:/dev/./urandom", \
    "-jar", \
    "app.jar" \
]